//
//  CYBProductCell.m
//  01-基本框架搭建
//
//  Created by apple on 16/9/2.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "CYBProductCell.h"
#import "CYBProject.h"

@interface CYBProductCell ()

/**
 *  cell的图标
 */
@property (weak, nonatomic) IBOutlet UIImageView *iconView;

/**
 *  cell的标题
 */
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation CYBProductCell

- (void)awakeFromNib {
    //设置图层圆角
    self.iconView.layer.cornerRadius = 8;
    //裁剪
    self.iconView.clipsToBounds = YES;
    
//    self.backgroundColor = [UIColor redColor];
}

- (void)setProject:(CYBProject *)project{
    _project = project;
    
    self.iconView.image = [UIImage imageNamed:project.icon];
    self.nameLabel.text = project.title;

}

@end
